package com.ecr.hub.database.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.ecr.hub.model.rail.Rail;
import com.ecr.hub.model.rail.TypeBundle;

public interface IDaoRail {

	public List<Rail> getAllList() throws DataAccessException;

	public List<Rail> getListForHub() throws DataAccessException;

	public List<Rail> getListByTypeBundle(int id, int active)
			throws DataAccessException;

	public Rail getById(int id) throws DataAccessException;

	public List<TypeBundle> getListTypeBundle() throws DataAccessException;

	public void update(Rail rail) throws DataAccessException;

	public void updateForAvailable(Rail rail) throws DataAccessException;

	public void updateForDestination(int id, String label, String hexColor)
			throws DataAccessException;

	public List<Rail> getByDestinationId(int id) throws DataAccessException;
}
